package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.CompanyTeamEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CompanyTeamRepository extends JpaRepository<CompanyTeamEntity, String> {
    List<CompanyTeamEntity> findByCompanyIdOrderByWeightDesc(String companyId);

    void deleteByCompanyId(String companyId);
}
